<%-- 
    Document   : Login
    Created on : Jul 27, 2012, 3:14:50 PM
    Author     : thaodd_b00696
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            function validate(){
                var nm = document.form.username.value;
                var pw = document.form.password.value;

                if(nm==""){
                    alert("Enter Username");
                    document.form.username.focus();
                    return false;
                }
                if(pw==""){
                    alert("Enter Passrord");
                    document.form.password.focus();
                    return false;
                }
                return true;
            }
        </script>
    </head>
    <body>
        <h3 align="center"><font color="black">Login Form Customer</font></h3>
        <Form name="form" method="post" action="Action" onsubmit="javascript:return validate()">
            <table align="center" border="0" width="300" style="background-color: gainsboro">
            <tr align="center">
                <td><font color="red">Thong bao</font></td>
                <td>${Error}</td>
            </tr>
            <tr align="center">
                <td width="50%">UserName :</td>
                <td width="50%"><input type="text" name="username"></td>
            </tr>
            <tr align="center">
                <td>Password :</td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr align="center">
                <td></td>
                <td>
                    <input type="submit" value="Login">
                    <input type="reset" value="Reset">
                </td>
            </tr>
        </table>
       </Form>
    </body>
</html>
